package com.aiyi.education.user.service;


import com.aiyi.education.entity.KsUserDepartmentWithBLOBs;
import com.aiyi.education.user.model.SysDepartTreeModel;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 用户部门 服务类
 * </p>
 *
 * @author renyong
 * @since 2020-04-22
 */
public interface IKsUserDepartmentService extends IService<KsUserDepartmentWithBLOBs> {



    /**
     * 查询所有部门信息,并分节点进行显示
     * @return
     */
    List<SysDepartTreeModel> queryTreeList();


    /**
     * 根据部门id删除并且删除其可能存在的子级任何部门
     */
    public boolean delete(Integer deptId);

    /**
     * 更新depart数据
     * @param sysDepart
     * @return
     */
    Boolean updateDepartDataById(KsUserDepartmentWithBLOBs sysDepart,String username);


    /**
     * 保存部门数据
     * @param sysDepart
     */
    boolean saveDepartData(KsUserDepartmentWithBLOBs sysDepart,String username);






}
